<ion-header>
  	<ion-navbar color="primary">
    	<ion-title>活动中心</ion-title>
  	</ion-navbar>
</ion-header>
<ion-header class="subheader">
	<ion-toolbar>
	  	<ion-segment [(ngModel)]="pet">
	        <ion-segment-button value="1" (ionSelect)="selectPage(1)">
	          进行中
	        </ion-segment-button>
	        <ion-segment-button value="2" (ionSelect)="selectPage(2)">
	          开奖中
	        </ion-segment-button>
	        <ion-segment-button value="0" (ionSelect)="selectPage(0)">
	          已结束
	        </ion-segment-button>
	    </ion-segment>
    </ion-toolbar>
</ion-header>

<ion-content>
	<ion-list class="actlist" inset>
		
	  	<ion-item *ngFor="let obj of datalist;">
		    <ion-thumbnail item-start>
		      <img src="assets/img/btb.png">
		    </ion-thumbnail>
	    	<h2>{{obj.name}}</h2>
	    	<p class="title"> 参与：{{obj.price + ' ' }} {{ obj.btype | bcoin}}</p>
	    	<p class="title"> 累计：{{obj.total + ' ' }} {{ obj.btype | bcoin}}</p>
	    	<p class="title-1" *ngIf="obj.type=='1'"> 截  止：{{obj.totalm + '/' + obj.member}}人</p>
	    	<p class="title-1" *ngIf="obj.type=='2'"> 截  止：{{obj.start | date}}</p>
	    	<button *ngIf="pet=='1'" ion-button round item-end (click)="detail(obj)">立即参与</button>
	    	<button *ngIf="pet!='1'" ion-button round item-end (click)="detail(obj)">查看详情</button>
	  	</ion-item>

	</ion-list>
</ion-content>
